home *** CD-ROM | disk | FTP | other *** search
/ Practical Algorithms for Image Analysis / Practical Algorithms for Image Analysis.iso / TARFILE.GZ / tarfile / libtiff / tools / Makefile < prev    next >
Encoding:
Makefile  |  1999-09-11  |  6.6 KB  |  249 lines

  1. #    $Header: /usr/people/sam/tiff/tools/RCS/Makefile.in,v 1.18 1996/03/18 20:56:15 sam Rel $
  2. #
  3. # Warning, this file was automatically created by the TIFF configure script
  4. #
  5. # TIFF Library Tools
  6. #
  7. # Copyright (c) 1988-1996 Sam Leffler
  8. # Copyright (c) 1991-1996 Silicon Graphics, Inc.
  9. # Permission to use, copy, modify, distribute, and sell this software and 
  10. # its documentation for any purpose is hereby granted without fee, provided
  11. # that (i) the above copyright notices and this permission notice appear in
  12. # all copies of the software and related documentation, and (ii) the names of
  13. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  14. # publicity relating to the software without the specific, prior written
  15. # permission of Stanford and Silicon Graphics.
  16. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  17. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  18. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  19. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  20. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  21. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  22. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  23. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  24. # OF THIS SOFTWARE.
  25. #
  26. DEPTH    = ..
  27.  
  28. SRCDIR    = ../tools
  29. LIBDIR    = ../libtiff
  30.  
  31. #
  32. # VERSION:    v3.4033
  33. # DATE:        Tue Mar  3 21:47:18 EST 1998
  34. # TARGET:    i586-unknown-linux
  35. # CCOMPILER:    /usr/bin/gcc
  36. #
  37. SHELL    = /bin/sh
  38. NULL    =
  39. CC    = /usr/bin/gcc
  40. INSTALL    = ${SHELL} ../port/install.sh
  41. #
  42. COPTS    = -g
  43. OPTIMIZER=-O
  44. IPATH    = -I. -I${SRCDIR} -I${LIBDIR}
  45. CFLAGS    =  ${COPTS} ${OPTIMIZER} ${IPATH}
  46. #
  47. LIBTIFF    = ${DEPTH}/libtiff/libtiff.a
  48. LIBJPEG    = 
  49. LIBGZ    = 
  50. LIBS    = ${LIBTIFF} ${LIBJPEG} ${LIBGZ}  -lm
  51. #
  52. OBJS=    \
  53.     fax2tiff.o \
  54.     fax2ps.o \
  55.     gif2tiff.o \
  56.     pal2rgb.o \
  57.     ppm2tiff.o \
  58.     rgb2ycbcr.o \
  59.     ras2tiff.o \
  60.     thumbnail.o \
  61.     tiff2bw.o \
  62.     tiff2ps.o \
  63.     tiffcmp.o \
  64.     tiffcp.o \
  65.     tiffdither.o \
  66.     tiffdump.o \
  67.     tiffinfo.o \
  68.     tiffmedian.o \
  69.     tiffsplit.o \
  70.     ${NULL}
  71. TARGETS    =\
  72.     fax2tiff \
  73.     fax2ps \
  74.     gif2tiff \
  75.     pal2rgb \
  76.     ppm2tiff \
  77.     rgb2ycbcr \
  78.     thumbnail \
  79.     ras2tiff \
  80.     tiff2bw \
  81.     tiff2ps \
  82.     tiffcmp \
  83.     tiffcp \
  84.     tiffdither \
  85.     tiffdump \
  86.     tiffinfo \
  87.     tiffmedian \
  88.     tiffsplit \
  89.     ${NULL}
  90.  
  91. all:    ${TARGETS}
  92.     @if [ "no" = yes ]; then \
  93.         ${MAKE} sgi2tiff; \
  94.     else \
  95.         true; \
  96.     fi
  97.     @if [ "no" = yes ]; then \
  98.         ${MAKE} tiffgt tiffsv; \
  99.     else \
  100.         true; \
  101.     fi
  102. install: all
  103.     ${INSTALL} -idb tiff.sw.tools -m 755 -dir /usr/local/bin
  104.     ${INSTALL} -idb tiff.sw.tools -m 755 -F /usr/local/bin -O ${TARGETS}
  105.     @if [ "no" = yes ]; then \
  106.         ${INSTALL} -idb tiff.sw.tools -m 755 -F /usr/local/bin -O sgi2tiff; \
  107.     else \
  108.         true; \
  109.     fi
  110.     @if [ "no" = yes ]; then \
  111.         ${INSTALL} -idb tiff.sw.tools -m 755 -F /usr/local/bin -O tiffgt tiffsv;\
  112.     else \
  113.         true; \
  114.     fi
  115. clean:
  116.     rm -f ${TARGETS} ${OBJS} sgigt.o tiffgt sgisv.o tiffsv \
  117.         sgi2tiff.o sgi2tiff core a.out ycbcr 
  118.  
  119. #
  120. # System-independent tools
  121. #
  122.  
  123. tiffinfo: tiffinfo.o ${LIBTIFF}
  124.     ${CC} -o tiffinfo ${CFLAGS} tiffinfo.o ${LIBS}
  125. tiffinfo.o: ${SRCDIR}/tiffinfo.c
  126.     ${CC} -c ${CFLAGS} ${SRCDIR}/tiffinfo.c
  127.  
  128. tiffcmp:tiffcmp.o ${LIBTIFF}
  129.     ${CC} -o tiffcmp ${CFLAGS} tiffcmp.o ${LIBS}
  130. tiffcmp.o: ${SRCDIR}/tiffcmp.c
  131.     ${CC} -c ${CFLAGS} ${SRCDIR}/tiffcmp.c
  132.  
  133. tiffcp:    tiffcp.o ${LIBTIFF}
  134.     ${CC} -o tiffcp ${CFLAGS} tiffcp.o ${LIBS}
  135. tiffcp.o: ${SRCDIR}/tiffcp.c
  136.     ${CC} -c ${CFLAGS} ${SRCDIR}/tiffcp.c
  137.  
  138. tiffdump: tiffdump.o
  139.     ${CC} -o tiffdump ${CFLAGS} tiffdump.o ${LIBS}
  140. tiffdump.o: ${SRCDIR}/tiffdump.c
  141.     ${CC} -c ${CFLAGS} ${SRCDIR}/tiffdump.c
  142.  
  143. tiffmedian: tiffmedian.o ${LIBTIFF}
  144.     ${CC} -o tiffmedian ${CFLAGS} tiffmedian.o ${LIBS}
  145. tiffmedian.o: ${SRCDIR}/tiffmedian.c
  146.     ${CC} -c ${CFLAGS} ${SRCDIR}/tiffmedian.c
  147.  
  148. tiffsplit: tiffsplit.o ${LIBTIFF}
  149.     ${CC} -o tiffsplit ${CFLAGS} tiffsplit.o ${LIBS}
  150. tiffsplit.o: ${SRCDIR}/tiffsplit.c
  151.     ${CC} -c ${CFLAGS} ${SRCDIR}/tiffsplit.c
  152.  
  153. tiff2ps: tiff2ps.o ${LIBTIFF}
  154.     ${CC} -o tiff2ps ${CFLAGS} tiff2ps.o ${LIBS}
  155. tiff2ps.o: ${SRCDIR}/tiff2ps.c
  156.     ${CC} -c ${CFLAGS} ${SRCDIR}/tiff2ps.c
  157.  
  158. #
  159. # Junky stuff... programs that are more examples of how
  160. # to use the library than full-blown useful tools.
  161. #
  162.  
  163. # convert RGB image to B&W
  164. tiff2bw: tiff2bw.o ${LIBTIFF}
  165.     ${CC} -o tiff2bw ${CFLAGS} tiff2bw.o ${LIBS}
  166. tiff2bw.o: ${SRCDIR}/tiff2bw.c
  167.     ${CC} -c ${CFLAGS} ${SRCDIR}/tiff2bw.c
  168.  
  169. # convert B&W image to bilevel w/ FS dithering
  170. tiffdither: tiffdither.o ${LIBTIFF}
  171.     ${CC} -o tiffdither ${CFLAGS} tiffdither.o ${LIBS}
  172. tiffdither.o: ${SRCDIR}/tiffdither.c
  173.     ${CC} -c ${CFLAGS} ${SRCDIR}/tiffdither.c
  174.  
  175. # simple Sun rasterfile converter
  176. ras2tiff: ras2tiff.o ${LIBTIFF}
  177.     ${CC} -o ras2tiff ${CFLAGS} ras2tiff.o ${LIBS}
  178. ras2tiff.o: ${SRCDIR}/ras2tiff.c
  179.     ${CC} -c ${CFLAGS} ${SRCDIR}/ras2tiff.c
  180.  
  181. # simple GIF converter
  182. gif2tiff: gif2tiff.o ${LIBTIFF}
  183.     ${CC} -o gif2tiff ${CFLAGS} gif2tiff.o ${LIBS}
  184. gif2tiff.o: ${SRCDIR}/gif2tiff.c
  185.     ${CC} -c ${CFLAGS} ${SRCDIR}/gif2tiff.c
  186.  
  187. # very limited PBM converter
  188. ppm2tiff: ppm2tiff.o ${LIBTIFF}
  189.     ${CC} -o ppm2tiff ${CFLAGS} ppm2tiff.o ${LIBS}
  190. ppm2tiff.o: ${SRCDIR}/ppm2tiff.c
  191.     ${CC} -c ${CFLAGS} ${SRCDIR}/ppm2tiff.c
  192.  
  193. # Group 3/4 FAX file converter
  194. fax2tiff: fax2tiff.o ${LIBTIFF}
  195.     ${CC} -o fax2tiff ${CFLAGS} fax2tiff.o ${LIBS}
  196. fax2tiff.o: ${SRCDIR}/fax2tiff.c
  197.     ${CC} -c -I${LIBDIR} -I${DEPTH}/libtiff ${CFLAGS} ${SRCDIR}/fax2tiff.c
  198.  
  199. # Group 3/4 FAX to encoded PS converter
  200. fax2ps: fax2ps.o ${LIBTIFF}
  201.     ${CC} -o fax2ps ${CFLAGS} fax2ps.o ${LIBS}
  202. fax2ps.o: ${SRCDIR}/fax2ps.c
  203.     ${CC} -c ${CFLAGS} ${SRCDIR}/fax2ps.c
  204.  
  205. # convert Palette image to RGB
  206. pal2rgb: pal2rgb.o ${LIBTIFF}
  207.     ${CC} -o pal2rgb ${CFLAGS} pal2rgb.o ${LIBS}
  208. pal2rgb.o: ${SRCDIR}/pal2rgb.c
  209.     ${CC} -c ${CFLAGS} ${SRCDIR}/pal2rgb.c
  210.  
  211. # convert RGB image to YCbCr
  212. rgb2ycbcr: rgb2ycbcr.o ${LIBTIFF}
  213.     ${CC} -o rgb2ycbcr ${CFLAGS} rgb2ycbcr.o ${LIBS}
  214. rgb2ycbcr.o: ${SRCDIR}/rgb2ycbcr.c
  215.     ${CC} -c ${CFLAGS} ${SRCDIR}/rgb2ycbcr.c
  216.  
  217. # generate thumbnail images from fax (example of SubIFD usage)
  218. thumbnail: thumbnail.o ${LIBTIFF}
  219.     ${CC} -o thumbnail ${CFLAGS} thumbnail.o ${LIBS}
  220. thumbnail.o: ${SRCDIR}/thumbnail.c
  221.     ${CC} -c ${CFLAGS} ${SRCDIR}/thumbnail.c
  222.  
  223. #
  224. # System-specific tools.
  225. #
  226.  
  227. #
  228. # sgi2tiff converts SGI RGB images to TIFF; it requires
  229. # the SGI image library -limage.
  230. #
  231. sgi2tiff: sgi2tiff.o ${LIBTIFF}
  232.     ${CC} -o sgi2tiff ${CFLAGS} sgi2tiff.o -limage ${LIBS}
  233. sgi2tiff.o: ${SRCDIR}/sgi2tiff.c
  234.     ${CC} -c ${CFLAGS} ${SRCDIR}/sgi2tiff.c
  235.  
  236. # SGI versions of tiffgt & tiffsv that require -lgl
  237. tiffgt:    sgigt.o ${LIBTIFF}
  238.     ${CC} -o tiffgt ${CFLAGS} sgigt.o ${LIBS} -lgutil -lgl_s
  239. sgigt.o: ${SRCDIR}/sgigt.c
  240.     ${CC} -c ${CFLAGS} ${SRCDIR}/sgigt.c
  241.  
  242. tiffsv:    sgisv.o ${LIBTIFF}
  243.     ${CC} -o tiffsv ${CFLAGS} sgisv.o ${LIBS} -lgutil -lgl_s
  244. sgisv.o: ${SRCDIR}/sgisv.c
  245.     ${CC} -c ${CFLAGS} ${SRCDIR}/sgisv.c
  246.